package com.ec.gateway.common.enums;


/**
 * @description:
 * @author: Eric Lee
 * @time: 2021/5/25 15:49
 */
public enum RespResultEnum {
    /**网关服务响应枚举**/
    INTERNAL_SERVER_BUSY_ERROR(40000, "宝，系统太忙了啦，快受不鸟了啦～"),
    LOSE_AUTH_TOKEN_ERROR(40001, "宝，token没了，要重新登录T_T"),
    TOKEN_CHECK_INVALID_ERROR(40002, "宝，token好像不太对呢，瞧瞧是不是拿错钥匙了啦"),
    TOKEN_EXPIRED_ERROR(40003, "宝～要不再登录一次看看嘛～"),
    SENTINEL_BLOCK_ERROR(40004, "已限流，请稍后再试"),
    TOKEN_IP_ERROR(40005, "登录的IP改变，请重新登录。"),
    ;
    final Integer code;
    final String message;



    RespResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }


    public String getMessage() {
        return message;
    }
}
